
<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "manage-myInfo-form",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array('class' => 'form-signin', 'role' => 'form'),
        ));

?>

<table class="table table-hover">
    <colgroup>
        <col class="span2">
        <col class="span6">
        <col class="span2">
    </colgroup>
    <thead>
        <tr>
            <th><?php echo '属性'; ?></th>
            <th><?php echo '内容'; ?></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <?php echo '手机号'; ?>
            </td>
            <td>
                <?php
                echo CHtml::activeTextField($model, $mobileField, array('placeholder' => '手机号' . '...', 'required' => true));
                ?>
                <!--                    &nbsp;&nbsp;&nbsp;&nbsp;<a id="CreateNewType_clink" role="button" data-toggle="modal" class="btn disabled" style="font-size: 12px;margin-top: -12px;">创建新类型</a>-->
            </td>
        </tr>
        <tr><td> <?php echo 'Email'; ?> </td>
            <td>
                <?php
                echo CHtml::activeTextField($model, $emailField, array('placeholder' => '电邮' . '...', 'required' => true));
                ?>
            </td>
        </tr>
        <tr><td> <?php echo '尊姓'; ?> </td>
            <td>
                <?php
                echo CHtml::activeDropDownList($model, $genderField, array('mister' => '先生', 'lady' => '女士', 'boy' => '男孩', 'girl' => '女孩'), array('placeholder' => '性别' . '...', 'class' => 'span2'));
                echo CHtml::activeTextField($model, $familyNameField, array('placeholder' => '姓氏' . '...', 'required' => true));
                ?>
            </td>
        </tr>
        <tr>
            <td> <?php echo '大名'; ?>  </td>                    
            <td>
                <?php
                echo CHtml::activeTextField($model, $surNameField, array('placeholder' => '名字' . '...', 'required' => true));
                ?>
            </td>
        </tr>
        <tr>
            <td> <?php echo '生日'; ?>  </td>                    
            <td>
                <?php
                echo CHtml::activeTextField($model, $birthField, array('placeholder' => '生日' . '...', 'required' => true));
                ?>
            </td>
        </tr>
    </tbody>
</table>

<?php $this->endWidget(); ?>

<?php
echo $control->getAjaxLink('保存信息', array(
    'cooker' => 'BAUserCooker@addUserInfo',
    'htmlOptions' => array(
        'class' => 'btn')));
?>